/**
 * @(#)SimulatorTaskVerDAOImpl.java 2016年12月1日
 * Copyright(C) 2016 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;


import java.util.List;

import org.jsbd.boss.dao.ISimulatorSysVerDAO;
import org.jsbd.boss.domian.SysVerVO;
import org.jsbd.boss.domian.channel.SimulatorSysVer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;


/**
 * 模拟器版本号
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service
public class SimulatorSysVerDAOImpl extends CrackBaseDao implements ISimulatorSysVerDAO{
	public static final Logger LOGGER = LoggerFactory.getLogger(SimulatorSysVerDAOImpl.class);

	/* (non-Javadoc)
	 * @see org.jsbd.boss.dao.ISimulatorSysVerDAO#insertSimulatorTaskVer(org.jsbd.boss.domian.channel.SimulatorSysVer)
	 */
	@Override
	public Integer insertSimulatorSysVer(SimulatorSysVer simulatorSysVer) {
		return (Integer) super.insert("qy_simulator_sys_ver.INSERT_SYS_VER", simulatorSysVer);
	}

	/* (non-Javadoc)
	 * @see org.jsbd.boss.dao.ISimulatorSysVerDAO#selectSimulatorSysVer(java.lang.String)
	 */
	@Override
	public List<SimulatorSysVer> selectSimulatorSysVer(String ver) {
		SimulatorSysVer sver = new SimulatorSysVer();
		sver.setVer(ver);
		return super.queryForList("qy_simulator_sys_ver.GET_SYS_VER_LIST", sver);
	}

	/* (non-Javadoc)
	 * @see org.jsbd.boss.dao.ISimulatorSysVerDAO#delSimulatorTaskVer(java.lang.String)
	 */
	@Override
	public int delSimulatorSysVer(String ver) {
		return super.delete("qy_simulator_sys_ver.DEL_SYS_VER", ver);
	}

	@Override
	public Integer updateSimulatorSysVer(SimulatorSysVer simulatorSysVer) {
		return super.update("qy_simulator_sys_ver.UPDATE_SYS_VER", simulatorSysVer);
	}

	@Override
	public List<SimulatorSysVer> selectSimulatorSysVerByVO(SysVerVO svVO) {
		return super.queryForList("qy_simulator_sys_ver.SELECT_SIMULATOR_SYS_VER_BY_VO", svVO);
	}
	
	
}
